// import request from '@/utils/request'
import request1 from '@/utils/request2'

// 查询库位
export const allocation = params => request1.get('area/pageDetail', { params })

// 搜索
export const searchstore = params => request1.get('area/pageDetail', { params })

// 库位删除
export const delStore = id => request1.delete('area', { params: { ids: [id] } })

// 库位修改
export const editStroe = data => request1.put('area', data)

// KQ
export const getKQ = () => request1.get('codeFactory/next/KQ')

// 查询全部库区
export const list = () => request1.get('warehouse/list', {
  params: { status: 1 }
})


// 新增库区
export const addStore = data => request1.post('area', data)
